import request from '@/utils/request'

export function listinfo(query) {
  return request({
    url: '/equipment/info/list',
    method: 'get',
    params: query
  })
}

export function createinfo(data) {
  return request({
    url: '/equipment/info/create',
    method: 'post',
    data
  })
}

export function readinfo(data) {
  return request({
    url: '/equipment/info/get/' + data.id,
    method: 'get'
  })
}

export function updateinfo(data) {
  return request({
    url: '/equipment/info/update',
    method: 'post',
    data
  })
}

export function deleteinfo(data) {
  return request({
    url: '/equipment/info/delete/' + data.feuipmentid,
    method: 'delete'
  })
}

export function saveEquipmentCodes3(query) {
  return request({
    url: '/smartCode/saveEquipmentCodes3',
    method: 'get',
    params: query
  })
}

//获取控制面板列表
export function areagitlist(query) {
  return request({
    url: '/data/area/getList',
    method: 'get',
    params: query
  })
}